d7d95106d0e46906477da9c7f93be156823d7bce,sonar-duplications/src/test/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithmTest.java,SuffixTreeCloneDetectionAlgorithmTest,huge,#,66

Before Change


    List<Block> fileBlocks = Lists.newArrayList();
    int indexInFile = 0;
    for (int i = 0; i < 5000; i++) {
      Block block = newBlock("x", new ByteArray("01"), indexInFile);
      fileBlocks.add(block);
      indexInFile++;
    }

After Change


    CloneIndex index = createIndex();
    Block[] fileBlocks = new Block[5000];
    for (int i = 0; i < 5000; i++) {
      fileBlocks[i] = newBlock("x", new ByteArray("01"), i);
    }
    List<CloneGroup> result = detect(index, fileBlocks);